# coding=utf-8

# 销毁服务器
from vultr import Vultr
f=open('subid.txt','r')
SUBID = f.read()
f.close()
d=raw_input('are you sure to DESTORY the server ？ '+SUBID+ ' input yes')
if d == 'yes':
    key = 'YourKey'
    if key == 'YourKey':
		print("please change your API KEY in the file ")
		exit()
    v = Vultr(key)
    # SUBID = xxx
    v.server.destroy(subid=SUBID)
else:
    print('cancled')


# In[ ]:


print("destoryed!")

